Skip to main content

mobilePurchaseError

Type​

function

Summary​

Returns detailed information about errors in a purchase.

Syntax​

mobilePurchaseError(<purchaseID>)

Description​

Use the mobilePurchaseError function to retrieve detailed information about errors in a purchase.

The mobilePurchaseError function returns a string containing detailed error information related to the specified purchase.

Parameters​

NameTypeDescription

purchaseID

a numeric purchase identifier

Examples​

put mobilePurchaseError(tPurchaseID) into tPurchaseError
if mobilePurchaseError(15) is empty then
answer "There were no errors with this purchase"
end if

Value​

NameTypeDescription

return

Returns the error information for the in-app purchase, purchaseID, if no error occurred empty is returned.

command: mobilePurchaseSet, mobileDisablePurchaseUpdates, mobilePurchaseVerify, mobileRestorePurchases, mobilePurchaseSendRequest, mobilePurchaseConfirmDelivery, mobileEnablePurchaseUpdates, mobilePurchaseCreate

function: mobilePurchaseState, mobilePurchaseGet, mobileCanMakePurchase, mobilePurchases

message: purchaseStateUpdate

Compatibility and Support​

Introduced

LiveCode 5.0.1

OS

ios

android

Platforms

mobile

Thank you for your feedback!

Was this page helpful?